Total Complexity | 1 |
Total Lines | 9 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import { Injectable } from '@nestjs/common'; |
||
7 | |||
8 | @Injectable() |
||
9 | export class TrySagaHandler { |
||
10 | @Saga() |
||
11 | dragonKilled = (events$: Observable<any>): Observable<ICommand> => { |
||
12 | return events$.pipe( |
||
13 | ofType(SagaEvent), |
||
14 | map((event: SagaEvent) => { |
||
15 | return new TrySagaCommand(event.message); |
||
16 | }), |
||
20 |